package com.scf.loan;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.openfeign.EnableFeignClients;

@RefreshScope   // nacos动态刷新，配置文件更新后，立即刷新最新配置
@EnableFeignClients(basePackages = "com.scf.service")
@EnableDiscoveryClient
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class,scanBasePackages = "com.scf")
@MapperScan("com.scf.loan.mapper")	//指定要变成实现类的接口所在的包，然后包下面的所有接口在编译之后都会生成相应的实现类
public class LoanApplication {

	public static void main(String[] args) {
		SpringApplication.run(LoanApplication.class, args);
	}

}
